﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DAL;
using QLCongNo.NCC;

namespace QLCongNo
{
    public partial class DSNhaCungCap : UserControl
    {
        public DSNhaCungCap()
        {
            InitializeComponent();
            DataTable tb = new DataTable();
            NhaCungCapDAL ncc = new NhaCungCapDAL();
            tb = ncc.DSNhaCungCap();
            dgv_Ncc.DataSource = tb;
        }

        private void btn_themncc_Click(object sender, EventArgs e)
        {
            ThemNCCform form = new ThemNCCform();
            form.ShowDialog();
        }

        private void simpleButton2_Click(object sender, EventArgs e)
        {
            MessageBox.Show("abc");
        }

        private void panel1_Paint(object sender, PaintEventArgs e)
        {

        }
    }
}
